package com.selfstudy.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.selfstudy.common.annotation.Excel;
import com.selfstudy.common.core.domain.BaseEntity;

/**
 * 投诉留言对象 s_msg
 * 
 * @author lgf
 * @date 2024-01-30
 */
public class SMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 信息id */
    private Long id;

    /** 学号 */
    @Excel(name = "学号")
    private String username;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 消息图片 */
    @Excel(name = "消息图片")
    private String imgUrl;

    /** 处理人 */
    @Excel(name = "处理人")
    private String handler;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handleTime;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String reply;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setHandler(String handler) 
    {
        this.handler = handler;
    }

    public String getHandler() 
    {
        return handler;
    }
    public void setHandleTime(Date handleTime) 
    {
        this.handleTime = handleTime;
    }

    public Date getHandleTime() 
    {
        return handleTime;
    }
    public void setReply(String reply) 
    {
        this.reply = reply;
    }

    public String getReply() 
    {
        return reply;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("content", getContent())
            .append("imgUrl", getImgUrl())
            .append("handler", getHandler())
            .append("handleTime", getHandleTime())
            .append("reply", getReply())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
